<?php


class DefaultsProcessor extends WeModuleProcessor {
    
	public function respond() {
		$default = $this->account['defaults'];
	
		if (is_array(unserialize($default))) {
			$default = unserialize($default);
			
			$processor = WeUtility::createModuleProcessor($default['module']);
			$processor->message = $this->message;
			$processor->inContext = $this->inContext;
			$processor->rule_id = $default['id'];
			$processor->module = $default['module'];
			$processor->account = $this->account;
			$processor->siteroot = $this->siteroot;
			$processor->attachurl = $this->attachurl;
			return $processor->respond();
		}
		return $this->respText($default);
	}
}